<style>
    .tip{
        padding-top: 10px;
        color: #b2b2b2;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apps_id" data-rule="required" {eq name="$row.status" value="1"}disabled{/eq} data-source="card/apps/index" class="form-control selectpage" name="row[apps_id]" type="text" value="{$row.apps_id|htmlentities}">
            <div class="tip">卡密所属应用</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" {eq name="$row.status" value="1"}disabled{/eq} class="form-control" name="row[code]" type="text" value="{$row.code|htmlentities}">
            <div class="tip">卡密内容</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day" data-rule="required" {eq name="$row.status" value="1"}disabled{/eq} class="form-control" name="row[day]" type="number" value="{$row.day|htmlentities}">
            <div class="tip">卡密天数</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            {eq name="$row.status" value="0"}
                <div style="color: limegreen"><i class="fa fa-circle"> </i> 未激活</div>
            {else}
                <div style="color: red"><i class="fa fa-circle"> </i> 已激活</div>
                <div class="tip">已经激活，禁止编辑</div>
            {/eq}
            </div>
        </div>
    </div>
    {eq name="$row.status" value="1"}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('充值账户')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-account" disabled class="form-control" type="text" value="{$row.account|htmlentities}">
                <div class="tip">充值账号</div>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Apply_date')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-apply_date" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[apply_date]" type="text" value="{:$row.apply_date?datetime($row.apply_date):''}">
                <div class="tip">卡密激活时间</div>
            </div>
        </div>
    {/eq}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
